package com.project.srtp.secure.dao.mapper;

/**
 * @author 曹行阳
 * @version 0.1
 * @date 2025/6/10 16:51
 */

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.project.srtp.secure.dao.entity.SecureFile;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

/**
 * SecureFile Mapper 接口
 */
@Mapper
public interface SecureFileMapper extends BaseMapper<SecureFile> {
    @Update("UPDATE t_secure_file SET download_count = download_count + 1 WHERE id = #{id}")
    void incrementDownloadCount(@Param("id") Long id);
}

